import request from '@/utils/request'

// 创建工作中心人员绑定
export function createCenterUser(data) {
  return request({
    url: '/base/center-user/create',
    method: 'post',
    data: data
  })
}

// 更新工作中心人员绑定
export function updateCenterUser(data) {
  return request({
    url: '/base/center-user/update',
    method: 'put',
    data: data
  })
}

// 删除工作中心人员绑定
export function deleteCenterUser(id) {
  return request({
    url: '/base/center-user/delete?id=' + id,
    method: 'delete'
  })
}

// 获得工作中心人员绑定
export function getCenterUser(id) {
  return request({
    url: '/base/center-user/get?id=' + id,
    method: 'get'
  })
}

// 获得工作中心人员绑定分页
export function getCenterUserPage(query) {
  return request({
    url: '/base/center-user/page',
    method: 'get',
    params: query
  })
}

// 导出工作中心人员绑定 Excel
export function exportCenterUserExcel(query) {
  return request({
    url: '/base/center-user/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
